import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 设备档案
export const machinemanagerMachineCreate = (data) => postRequest('/machinemanager/machine/create', data);
export const machinemanagerMachineUpdate = (data) => putRequest('/machinemanager/machine/update', data);
export const machinemanagerMachineDelete = (params) => deleteRequest('/machinemanager/machine/delete', params);
export const machinemanagerMachineGet = (params) => getRequest('/machinemanager/machine/get', params);
export const machinemanagerMachinePage = (params) => getRequest('/machinemanager/machine/page', params);
export const machinemanagerMachinePagePost = (params) => postRequest('/machinemanager/machine/page', params);
export const machinemanagerMachineExportExcel = (params) => getRequest('/machinemanager/machine/export-excel', params);
// 人机绑定
export const workforcemanagementEmpMachineUpdate = (params) => putRequest('/workforcemanagement/emp-machine/update', params);
export const workForceManagementEmpMachineMonitoringTypeList = (params) => getRequest('/machinemanager/machine/monitoring-type-list', params);

// IOT设备
export const productionIotMachineGetAll = (params) => getRequest('/production/iot-machine/get-all', params);
export const productionIotMachineGetAllSingle = (params) => getRequest('/production/iot-machine/get-all-single', params);
export const machineManagerMachineUpdateBatchMonitoringParams = (params) => putRequest('/machinemanager/machine/update-batch-monitoring-params', params);
